//
//  MineGiftTableViewCell.m
//  Tongcheng
//
//  Created by 邢广范 on 2017/4/17.
//  Copyright © 2017年 Tongcheng. All rights reserved.
//

#import "MineGiftTableViewCell.h"
#import "UIImageView+AFNetworking.h"

@interface MineGiftTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *giftImageView;
@property (weak, nonatomic) IBOutlet UILabel *giftCountLabel;

@end

@implementation MineGiftTableViewCell

- (void)setModel:(MineGiftListModel *)model
{
    _model = model;
    [self.giftImageView setImageWithURL:[NSURL URLWithString:model.gift_image] placeholderImage:nil];
    self.nameLabel.text = model.user_nicename;
    [self.giftImageView setImageWithURL:[NSURL URLWithString:@""] placeholderImage:nil];
    self.giftCountLabel.text = [NSString stringWithFormat:@"%@个", model.giftnum];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
